package com.shinbada.modules.sys.service;

import com.shinbada.core.persistence.Page;
import com.shinbada.core.service.CrudService;
import com.shinbada.modules.sys.entity.ViewLog;
import com.shinbada.modules.sys.mapper.ViewLogMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 访问日志Service
 *
 * @author initcap
 * @version 2021-04-21
 */
@Service
@Transactional(readOnly = true)
public class ViewLogService extends CrudService<ViewLogMapper, ViewLog> {

    @Override
    public ViewLog get(String id) {
        return super.get(id);
    }

    @Override
    public List<ViewLog> findList(ViewLog viewLog) {
        return super.findList(viewLog);
    }

    @Override
    public Page<ViewLog> findPage(Page<ViewLog> page, ViewLog viewLog) {
        return super.findPage(page, viewLog);
    }

    @Transactional(readOnly = false)
    @Override
    public void save(ViewLog viewLog) {
        super.save(viewLog);
    }

    @Transactional(readOnly = false)
    @Override
    public void delete(ViewLog viewLog) {
        super.delete(viewLog);
    }

}
